<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<base href="<%=basePath%>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=320px, user-scalable=no, initial-scale=1, maximum-scale=1">
<html lang="zn-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>组织架构组成</title>
    <!--图标样式-->
    <link rel="stylesheet" type="text/css" href="css/bootstrap.css" />
    <!--主要样式-->
    <link rel="stylesheet" type="text/css" href="css/styleTree.css" />
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/tree/test.js"></script>
    <script type="text/javascript" src="js/base.js"></script>

</head>

<body>

<div class="tree well">

    <ul id="rootUL">

    </ul>
</div>

<script type="text/javascript">
    $(function () {
        var oid = "${oid}";
        $.ajax({
            type: "GET",
            url: $.httpRootPath()+"rest/group/getDepTree?oid="+oid,
            data: oid,
            dataType: "json",
            success: function (reply) {
                if (reply.code == "00") {
                    tree(reply.data);
                    listen();
                } else {

                }
            }
        })
    });
</script>
</body>

</html>
